package cn.waka.sys.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hx.vr.socket.rpc.HelloService;
//import com.weibo.api.motan.config.springsupport.annotation.MotanReferer;

@Controller
public class TestController {

	//@MotanReferer(basicReferer = "motantestClientBasicConfig", group = "socket")
	private HelloService hello;

	@RequestMapping("/hello")
	@ResponseBody
	public String hello(String name) {
		System.out.println("=========服务Hello:" + hello);
		return hello.hello(name);
	}

	public HelloService getHello() {
		return hello;
	}

	public void setHello(HelloService hello) {
		this.hello = hello;
	}

}
